body {
	position: relative;
}
#box {
    display: none;
    position: fixed;
    /* 如果不用定位来写他的位置，而是用margin，则跟随鼠标移动效果出不来 */
    left: 50%;
    /* 父亲没有高度的情况下，top百分数的效果出不来 */
    top: 300px;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    width: 400px;
    height: 300px;
    background-color: #fff;
    border-radius: 25px 0 25px 25px;
    box-shadow: 2px 2px 8px 2px rgba(0, 0, 0, 0.3);
}
h3 {
    text-align: center;
    padding: 20px 0;
    cursor: move;
}
#box input {
    height: 40px;
    width: 300px;
    margin: 20px 50px;
    padding-left: 10px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    color: #999;
    background-color: #F6F6F6;
}
#box #code {
    color: #333;
}
#box #close {
    position: absolute;
    top: -20px;
    right: -20px;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
}
#box button {
    display: inline-block;
    height: 40px;
    width: 80px;
    font-size: 14px;
    margin-left: 50px;
}
#box button:hover {
    background-color: pink;
}
#box img {
    position: relative;
    left: 310px;
    top: -62px;
    height: 30px;
    width: 35px;
    cursor: pointer;
}